<table class="easyui-datagrid" fit="true"
       singleSelect="true" fitColumns="true" pagination="true"
       idField="contacter_id" url="y.php?r=contacter/getdata"  data-options="onClickRow:window_contacter_click">
    <thead>
    <tr>
        <th field="contacter_name" width="60">姓名</th>
        <th field="position" width="60">职位</th>
        <th field="email" width="80">Email</th>
        <th field="tel" width="60">办公电话</th>
        <th field="phone" width="60">手机</th>
    </tr>
    </thead>
    </thead>
</table>
<script>
    var form = "<?php echo $form;?>";
    function window_contacter_click(index, row) {
        $("#"+form).find("#<?php echo $form;?>_contacter_name").textbox('setText',row.contacter_name);
        $("#"+form).find("input[name=contacter_id]").val(row.contacter_id);
        $('#win_main_2').window("close");
    }
</script>